#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void Bubble_sort(int* arr,int len)
{
	int i = 0;
	for (i=0;i<len-1;i++)
	{
		int j = 0;
		for (j = 0; j < len-1-i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int tmp = 0;
				tmp = arr[j];
				arr[j] = arr[j+1];
				arr[j + 1] = tmp;
			}
		}
	}
}

int main()
{
	int arr[6] = { 4,6,2,3,5,1 };
	int len = sizeof(arr) / sizeof(arr[0]);
	Bubble_sort(arr, len);
	int i = 0;
	for (i = 0; i < len; i++)
	{
		printf("%d", arr[i]);
	}
	return 0;
}